# -----------------------------------------------
# Author: yuz
# Copyright: 湖南零檬信息技术有限公司
# Email: wagyu2016@163.com
# Phone&Wechat: 18173179913
# Site: http://www.lemonban.com
# Forum: http://testingpai.com
# -----------------------------------------------
import json

import requests


def login():
    url = 'http://mall.lemonban.com:8108/adminLogin'
    headers = {'content-type': 'application/json'}
    data = {
        "credentials": "123456a",
        "principal": "student",
        "imageCode": "lemon"
    }
    r = requests.post(url, data=json.dumps(data), headers=headers)
    content = r.json()

    print(content)


login()